//
//  CustomNavigationView.m
//  ZYFund
//
//  Created by xy on 2018/7/25.
//  Copyright © 2018年 szltech. All rights reserved.
//

#import "CustomNavigationView.h"

@implementation CustomNavigationView

- (void)updateConstraints {
    [super updateConstraints];
    
    if (IS_IPHONE_X) {
        NSArray *constrains = self.constraints;
        for(NSLayoutConstraint *constraint in constrains){
            if(constraint.firstAttribute == NSLayoutAttributeHeight){
                constraint.constant = 64 + 24;
            }
        }
        self.bounds = CGRectMake(0, 0, UIScreen.mainScreen.bounds.size.width, 88);
        [self layoutIfNeeded];
    }
}

@end
